package 设计模式.第2部分.第14章_观察者模式.v1;

public class StockObserver {

	private String name;
	private Secretary sub;

	public StockObserver(String name, Secretary sub) {
		this.name = name;
		this.sub = sub;
	}

	void Update() {
		System.out.println(sub.getAction() + " " + name + " 关闭股票行情,继续工作!");
	}

}
